package com.lagou;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data  //get和set构造的操作
@AllArgsConstructor //相当于加了有参构造
@NoArgsConstructor //相当加了午餐构造
public class Person {

    //name 匿名  ordinal  排序  seriolize=faise 显示或者不显示
    @JSONField(name="Username",ordinal = 1)
    String name;
    @JSONField(name="Age",ordinal = 2)
    Integer age;
    @JSONField(name="Sex",ordinal = 3)
    String sex;


}
